package com.buba.service;

import entity.sparemanage.SpareParts;
import com.baomidou.mybatisplus.extension.service.IService;
import entity.sparemanage.dto.insertPartsDto;
import entity.sparemanage.dto.requisitionDto;
import entity.sparemanage.dto.selByPartsIdDto;
import utils.PageResult;

/**
 * <p>
 * 备件采购 服务类
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
public interface SparePartsService extends IService<SpareParts> {

    /* *
     * @Author: beisheng
     * @Descriprion: 根据采购单号查询采购信息和采购人员信息，及供应商信息
     * @Date: 2023/5/26 15:41
     * @Return: common.R
     * @Param: [spId]
     */

    selByPartsIdDto selByPartsId(Integer spId);

    /* *
     * @Author: beisheng
     * @Descriprion: 分页模糊查询全部采购单
     * @Date: 2023/6/6 9:20
     * @Return: common.R
     * @Param: [requisition]
     */

    PageResult selAllRequisition(requisitionDto requisition);

    /* *
     * @Author: beisheng
     * @Descriprion: 添加备件采购单
     * @Date: 2023/6/12 10:25
     * @Return: common.R
     * @Param: [insertPartsDto]
     */

    void insertParts(insertPartsDto insertPartsDto);
}
